<div id="weather">
    <h5 id="weather-city" class="city"><?php echo $this->place ?></h5>
    <h6 class="temperature"><?php echo $this->translate()->widget('temperature') ?>: <span id="weather-temperature"></span><?php echo ($this->unit == 'c') ? '&degC' : '$degF';?></h6>
    <h6 class="wet"><?php echo $this->translate()->widget('humidity') ?>: <span id="weather-humidity"></span>%</h6>
    <script type="text/javascript">
        $(document).ready(function(){
            $.simpleWeather({
                location: '<?php echo $this->code?>',
                unit: '<?php echo $this->unit ?>',
                success: function(weather) {
                    $('#weather-temperature').html(weather.temp);
                    $('#weather-humidity').html(weather.humidity);
                },
                error: function(error) {}
            });
        });
    </script>
</div><!-- #weather -->
